import Vue from 'vue'
import Router from 'vue-router'
import index from '@/pages/index.vue'
import fact from '@/pages/fact.vue'
import indent from '@/pages/indent.vue'
import person from '@/pages/person.vue'
import login from '@/pages/person/login.vue'
import home from '@/pages/person/home.vue'
import fac from '@/pages/fact/factindex.vue'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/fact',
      component: fact,
      children:[{
        path:'',
        name:'fac',
        component:fac
      }]
    },
    {
      path: '/indent',
      name: 'indent',
      component: indent
    },
    {
      path: '/person',
      component: person,
      children:[{
        path: '',
        name: 'home',
        component: home,
      },
      {
        path: 'login',
        name: 'login',
        component: login,
      }]
    }
  ]
})
